#ifndef BILINEAR_INTERPOLATOR_H_
#define BILINEAR_INTERPOLATOR_H_

#include "TiledInterpolator.h"

class BilinearInterpolator : public TiledInterpolator {
  public:
    // Construct with edge modes.
    BilinearInterpolator(EdgeMode horizontal_edge, EdgeMode vertical_edge);
    virtual ~BilinearInterpolator();

    // Returns color of nearest pixel.
    virtual Color pixel(const ReadableImage& image, double x, double y) const;
};

#endif
